package com.IC.base.service.impl;

import com.IC.base.mapper.UserMapper;
import com.IC.base.service.UserService;
import com.IC.domain.SysOrg;
import com.IC.domain.User;
import com.IC.domain.vo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：xiawenze
 * @Package：com.IC.base.service.impl
 * @Project：smart2
 * @name：UserServiceImpl
 * @Date：2024/7/31 15:03
 */
@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<UserVO> findUserList(String name, String uname, String roleName, Integer orgId) {
        return userMapper.findUserList(name,uname,roleName,orgId);
    }

    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }

    @Override
    public List<UserVO> findSelectOrg() {
        return userMapper.findSelectOrg();
    }

    @Override
    public List<UserVO> findSelectOrgById(Integer id) {
        return userMapper.findSelectOrgById(id);
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }

    @Override
    public void delete(Integer id) {
        userMapper.delete(id);
    }

    @Override
    public void updateUpwd(Integer id, String upwd) {
        userMapper.updateUpwd(id,upwd);
    }

    @Override
    public void updateStatue(Integer id) {
        userMapper.updateStatue(id);
    }


}
